#计算每个班级的总成绩
score = [[99,89,79,69],[98,88,78,68,58],[97,87,77]]


for i in score:
    n = 0
    for j in i:
        n += j
    print("第%d班，共%d分"%(score.index(i)+1,n))